<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>7-事件循环-eventloop</title>
  </head>
  <body>
    <h2>事件循环-eventloop</h2>
    <script>
      // 同步+0延迟异步
      console.log(4)
      setTimeout(() => {
        console.log(5)
      }, 0)
      console.log(6)

      // 4 6 5
    </script>
  </body>
</html>
